package com.hssy.wululuaplan.mapper;

import com.hssy.wululuaplan.entity.KeepAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hssy.wululuaplan.vo.account.ChartVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 收支账本记录 Mapper 接口
 * </p>
 *
 * @author Mr.Hongtao
 * @since 2025-06-18
 */
@Mapper
public interface KeepAccountMapper extends BaseMapper<KeepAccount> {

    BigDecimal selectStatistic(@Param("dateType") String dateType, @Param("date") String date, @Param("userId")Integer userId);

    List<KeepAccount> selectMonthList(@Param("dateType") String dateType,@Param("date")  String date, @Param("userId")Integer userId);

    List<ChartVo> selectChartDataList(@Param("dateType") String dateType,@Param("startDate") Date startDate, @Param("endDate") Date endDate, @Param("userId") Integer userId);
}
